package cc.gu.tank.scene;

import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.stage.Stage;

import java.io.IOException;

/**
 * @Author: GuSongLiao
 * @Date: 2025/9/29 8:57
 * @Description: 初始页面
 */
public class GameOver {

    public static void init(Stage stage) {
        try {
            Parent root = FXMLLoader.load(GameOver.class.getResource("/fxml/gameOver.fxml"));
            stage.getScene().setRoot(root);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }

}
